<template>
  <div>
    Home
    <el-button @click="logout" type="info">退出</el-button>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      ss: 'fff'
    }
  },

  methods: {
    logout() {
      window.sessionStorage.removeItem('token')
      this.$router.replace({ name: 'Login' })
    }
  }
}
</script>

<style lang="less" scoped></style>
